package com.framework;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Administrator
 */ // ValidateRule注解
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@interface ValidateRule {
    String type();
    int min() default 0;
    int max() default 0;
    String pattern() default "";
    String message() default "";
}